package com.bw.common.http


import android.util.Log

import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit
import javax.net.ssl.HostnameVerifier
import javax.net.ssl.SSLSession

object NetUtils {
    suspend fun <T> httpRequest(s:suspend ()-> Res<T>): Res<T> {
        val data = s.invoke()//执行传入的挂起函数，获取结果
        Log.i("===","${data.message}")
        return data
    }
}
